package com.oss.vo;

import java.util.Date;

import javax.annotation.Generated;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.PrePersist;
import javax.persistence.PreUpdate;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;
@Entity(name="oss_file_info")
@GenericGenerator(name="idGenerator", strategy="uuid")
public class OssFileInfo extends BaseEntity{

	@Id
	@Column(name="id")  
	@GeneratedValue(generator="idGenerator")
	private String id;
	@Column(name="bucket")
	private String bucket;
	@Column(name="endpoint")
	private String endpoint;
	@Column(name="oss_key")
	private String ossKey;
	@Column(name="orignal_name")
	private String orignalName;
	@Column(name="size")
	private long size;
	
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getBucket() {
		return bucket;
	}

	public void setBucket(String bucket) {
		this.bucket = bucket;
	}

	public String getEndpoint() {
		return endpoint;
	}

	public void setEndpoint(String endpoint) {
		this.endpoint = endpoint;
	}

	public String getOssKey() {
		return ossKey;
	}

	public void setOssKey(String ossKey) {
		this.ossKey = ossKey;
	}

	public String getOrignalName() {
		return orignalName;
	}

	public void setOrignalName(String orignalName) {
		this.orignalName = orignalName;
	}

	public long getSize() {
		return size;
	}

	public void setSize(long size) {
		this.size = size;
	}

}
